{% extends "base.html" %}

{% block header %}
	{{ block.super }}
	<h2>User Portal</h2>
{% endblock %}

{% block body %}

<div id='user-portal'>
	<div class='portal-action' onclick="location.href='{% url public_ticket_list %}';" style='cursor: pointer;'>
		<h2><a href='{% url public_ticket_list %}'>View All Tickets</a></h2>
	</div>
	<br /><h1>&mdash; OR &mdash;</h1><br />
	<div class='portal-action'>
		<h2>Search for your tickets</h2><br />
		<form method="POST" action="{% url public_ticket_list %}">
			{% csrf_token %}
			{{ form.as_p }}
			<input type="submit" value="Search" />
		</form>
	</div>
	<br /><h1>&mdash; OR &mdash;</h1><br />
	<div class='portal-action' onclick="location.href='{% url public_ticket_create %}';" style='cursor: pointer;'>
		<h2><a href="{% url public_ticket_create %}">Create a new ticket</a></h2>
	</div>
</div>

{% endblock %}
